let basic = [
  // user


  // app
  {
    path: '/',
    component: '../layouts/BasicLayout',
    Routes: ['src/pages/Authorized'],
    authority: ['admin', 'user'],
    routes: [
      {
        path: '/user',
        component: '../layouts/UserLayout',
        routes: [
          { path: '/user', redirect: '/user/login' },
          { path: '/user/login', component: './User/Login' },
          { path: '/user/register', component: './User/Register' },
          { path: '/user/register-result', component: './User/RegisterResult' },
        ],
      },
      {
        path: '/',
        name: '首页',
        component: './Index/index',
      }
      ,
      {
        name: '商品分类',
        icon: 'check-circle-o',
        path: '/Category',
        routes: [
          {
            path: '/Category/Category',
            name: 'category',
            component: './Category/Category',
          },
           {
            path: '/Category/CategoryList',
            name: '分类管理',
            component: './Category/CategoryList',
          }
        ]
      },
      {
        name: '商品',
        icon: 'check-circle-o',
        path: '/ProductList',
        

        routes: [
          {
            path: '/ProductList',
            component:'./ProductList/List',
          },
          {
            path: '/ProductList/ListStep',
            component: './ProductList/ListStep',
          },
        ],
      },
      {
        name: '订单',
        icon: 'check-circle-o',
        path: '/OrderList',
        component: './OrderList/OrderList',     
      },

      {
        icon: 'warning',
        path: '/exception',
        routes: [
          // exception
          {
            path: '/exception/403',
            component: './Exception/403',
          },
          {
            path: '/exception/404',
            component: './Exception/404',
          },
          {
            path: '/exception/500',
            component: './Exception/500',
          },
          {
            path: '/exception/trigger',
            hideInMenu: true,
            component: './Exception/TriggerException',
          },
        ],
      },
      {
        icon: 'check-circle-o',
        path: '/result',
        routes: [
          // result
          {
            path: '/result/success',
            component: './Result/Success',
          },
          { path: '/result/fail',
            component: './Result/Error' 
          },
        ],
      },
      {
        path: '/profile',
        name: 'profile',
        icon: 'profile',
        routes: [
          // profile
          {
            path: '/profile/basic',
            name: 'basic',
            component: './Profile/BasicProfile',
          },
          {
            path: '/profile/advanced',
            name: 'advanced',
            authority: ['admin'],
            component: './Profile/AdvancedProfile',
          },
        ],
      },
      {
        component: '404',
      },
    ],
  },
];
export default [
  {
    path:'/',
    routes:basic
  }
]
